#include "term.h"

void draw(int x, int y, unsigned int color, const char* content)
{
    std::cout << "\e[" << y << ";" << x << "H\e[1;" << color << "m" << content << NONE << std::flush;
}

void clearcls()
{
    std::cout << CLEAR << std::flush;
}

void set_cursor(int x, int y)
{
    std::cout << "\e[" << y << ";" << x << "H" << std::flush;
}

void hide_cursor()
{
    std::cout << HIDE;
}

void show_cursor()
{
    std::cout << REVERSE;
}
